package com.shidaimanong.service;

import com.shidaimanong.entity.User;
import com.shidaimanong.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 学编程，关注：十代码农
 * 抖音、快手、B站、西瓜视频、今日头条
 */
@Service
public class UserService {
    @Autowired
    UserMapper userMapper;

    public User queryUser(int id) {
        return userMapper.queryUser(id);
    }

    public User queryAllUsers() {
        return userMapper.queryAllUsers();
    }
}
